package com.wuseguang.springcloud.service;

import com.wuseguang.springcloud.Filter.RequestParameterWrapper;
import com.wuseguang.springcloud.entity.StudentAchievement;
import com.wuseguang.springcloud.util.Result;
import org.springframework.transaction.annotation.Transactional;

import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;

public interface StudentAchievementService {

    Result addSchoolAchievement(String schoolId, String termId, String list, String name, String teacherId, Integer type);

    Result delSchoolAchievement(Integer id, String teacherId);

    Result querySchoolAchievement(String schoolId, String terId, String name, Integer indexNo, Integer rows, String teacherId, String admin, String sStime, String eStime);

    Result querySchoolAchievementById(Integer id);


    Result updateAchievementStudent(Integer id, String classId);

    Result queryCourseList(Integer id);

    Result updateAchievementCourse(Integer id, String total_score, Integer state);

    List<Map<String, Object>> querySubjectsAll(String school_id);

    @Transactional
    Result batchAdditionAchievement(String list, Integer id);

    Result queryScoreStatistics(Integer id);

    Result sendParent(Integer id);

    void exportAchievement(RequestParameterWrapper request, HttpServletResponse response, Integer id, Integer type);
}
